package com.bw.module_home.device.api

import com.bw.lib_common.api.BaseApiServer
import com.bw.lib_common.entity.Res
import com.bw.module_home.device.model.DeviceEntity
import com.bw.module_home.device.model.DeviceEntityItem
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface DeviceApiService:BaseApiServer {
    @GET("/api/devices")
    suspend fun getDevice():Res<DeviceEntity>
    @POST("/api/devices")
    suspend fun addDevice(@Body deviceEntityItem: DeviceEntityItem):Res<DeviceEntityItem>
}